package tournamentmanager;

public class TournamentChessEngine extends ChessEngine {
    
	private static final long serialVersionUID = -6993788567490431771L;

	public static final boolean WHITE = true;

    public static final boolean BLACK = false;

    private boolean colorInCurrentRound;

    private int pairingNumber;

    public TournamentChessEngine(ChessEngine chessEngine) {
        super(chessEngine.getName(), chessEngine.getCommand(), chessEngine
                .getWorkingDirectory());
    }

    public boolean isWhite() {    	
        return colorInCurrentRound;
    }

    public boolean isBlack() {
        return !colorInCurrentRound;
    }

    public void setColorInCurrentRound(boolean color) {
        this.colorInCurrentRound = color;
    }

    public int getPairingNumber() {
        return pairingNumber;
    }

    public void setPairingNumber(int pairingNumber) {
        this.pairingNumber = pairingNumber;
    }

    public boolean getColorInCurrentRound() {
        return colorInCurrentRound;
    }

	@Override
	public String toString() {		
		return pairingNumber + ". " + getName();
	}
        
}
